package main

import (
	"fmt"
	"github.com/widuu/gomysql"
)

func p(t interface{}) {
	fmt.Println(t)
}
func main() {
	c, err := gomysql.SetConfig("./conf/conf.ini")
	if err != nil {
		fmt.Println(err)
	}

	table := c.SetTable("ecs_users")
	data := table.Fileds("phone", "user_name").FindOne()
	for k, v := range data {
		p(k)
		p(v)
	}
	var sss = make(map[string]interface{})
	sss["user_name"] = "mytest"
	table.Where("phone=1").Update(sss)
}
